package com.pikachu.web.pojo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.core.annotation.Order;

/**
 * 分页对象
 * @author huang_kangjie
 * @create 2018-08-29 13:46
 **/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PageBean {

     /**
      * 分页 - 页码
      */
     @JsonProperty(value = "page_no")
     @Order(value = 1)
     private int pageNo = 1;

     /**
      * 分页 - 每页大小
      */
     @JsonProperty(value = "page_size")
     @Order(value = 2)
     private int pageSize = 10;

     /**
      * 分页总数
      */
     @Order(value = 3)
     private long total = 0L;

     /**
      * 总共页数
      */
     @Order(value = 4)
     private int pages = 0;

     /**
      * 数据
      */
     @Order(value = 5)
     private Object data;

}
